package com.lry.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

@RestController
public class HelloController {

    @GetMapping("/mono")
    public Mono<String> mono(){
        return Mono.just("hello world");
    }

    @GetMapping("/flux")
    public Flux<String> flux(){
        return Flux.just("flux1","flux2");
    }
}
